package mvp.com.register.view.activity;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;

import com.github.johnpersano.supertoasts.SuperToast;

import mvp.com.register.R;
import mvp.com.register.view.MainView;

/**
 * Created by ChenYong on 2016/9/17.
 */
public class MainActivity extends FragmentActivity implements MainView {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);



    }

    public void showToast(View view) {
        SuperToast.cancelAllSuperToasts();
        SuperToast superToast = new SuperToast(this);
        superToast.setAnimations(SuperToast.Animations.POPUP);
        superToast.setDuration(SuperToast.Duration.SHORT);
        superToast.setTextColor(getResources().getColor(R.color.main_white));
        superToast.setTextSize(SuperToast.TextSize.SMALL);
        superToast.setBackground(SuperToast.Background.BLUE);
        superToast.setText("你好");
        superToast.show();
    }
}
